<div class="reference">
   <div class="titlepage">
      <div>
         <h1 class="title"><a name="d7e1"></a>Node Templates
         </h1>
      </div>
      <div>
         <h3 class="author">Steve Ball</h3>
      </div>
      <div>
         <p class="releaseinfo">
            	$Id: node.html,v 1.5 2001/11/03 00:50:28 balls Exp $
                  
         </p>
      </div>
      <div>
         <p class="copyright">Copyright &copy; 2001 Steve Ball</p>
      </div>
      <hr>
   </div>
   <div class="partintro">
      <div></div>
      <div class="section"><a name="d7e22"></a><div class="titlepage">
            <div>
               <h2 class="title" style="clear: both"><a name="d7e22"></a>Introduction
               </h2>
            </div>
         </div>
         <p>This stylesheet module provides functions for reporting on or manipulating nodes and nodesets.</p>
      </div>
      <div class="toc">
         <p><b>Table of Contents</b></p>
         <dl>
            <dt><a href="#template.node:xpath">node:xpath</a> - Returns an XPath location path
            </dt>
            <dt><a href="#template.node:type">node:type</a> - Return node type
            </dt>
         </dl>
      </div>
   </div>
   <hr>
   <div class="refentry">
      <h1 class="title"><a name="template.node:xpath"></a>node:xpath
      </h1>
      <div class="refnamediv"><a name="d7e28"></a><h2>Name</h2>node:xpath &#8212; Returns an XPath location path
      </div>
      <div class="refsynopsisdiv"><a name="d7e33"></a><h2>Synopsis</h2><pre class="synopsis">&lt;xsl:template name="node:xpath"&gt;
&lt;xsl:param name="node" select="."/&gt;
  ...
&lt;/xsl:template&gt;</pre></div>
      <div class="refdescription"><a name="d7e36"></a>
               
         
         <p>This template returns an XPath location path that uniquely identifies the given node within the document.</p>
         
             
      </div>
      <div class="refparameter"><b><a name="d7e41"></a>Parameters</b>
               
         
         <div class="variablelist">
            <dl>
               <dt><a name="d7e44"></a><span class="term">node</span></dt>
               <dd>
                  <p><a name="d7e47"></a>The node to create an XPath for
                  </p>
               </dd>
            </dl>
         </div>
         
             
      </div>
      <div class="refreturn"><b><a name="d7e51"></a>Returns</b>
               
         
         <p>Returns an XPath location path as a string.</p>
         
             
      </div>
   </div>
   <hr>
   <div class="refentry">
      <h1 class="title"><a name="template.node:type"></a>node:type
      </h1>
      <div class="refnamediv"><a name="d7e57"></a><h2>Name</h2>node:type &#8212; Return node type
      </div>
      <div class="refsynopsisdiv"><a name="d7e62"></a><h2>Synopsis</h2><pre class="synopsis">&lt;xsl:template name="node:type"&gt;
&lt;xsl:param name="node" select="."/&gt;
  ...
&lt;/xsl:template&gt;</pre></div>
      <div class="refdescription"><a name="d7e65"></a>
               
         
         <p>Returns the type of a node as a string.</p>
         
             
      </div>
      <div class="refparameter"><b><a name="d7e70"></a>Parameters</b>
               
         
         <div class="variablelist">
            <dl>
               <dt><a name="d7e73"></a><span class="term">node</span></dt>
               <dd>
                  <p><a name="d7e76"></a>The node to get the type for
                  </p>
               </dd>
            </dl>
         </div>
         
             
      </div>
      <div class="refreturn"><b><a name="d7e80"></a>Returns</b>
               
         
         <p>Returns node type as a string.  Values returned are:</p>
         
               
         
         <div class="variablelist">
            <dl>
               <dt><a name="d7e86"></a><span class="term">Element</span></dt>
               <dd>
                  <p><a name="d7e89"></a><tt>element</tt></p>
               </dd>
               <dt><a name="d7e93"></a><span class="term">Text Node</span></dt>
               <dd>
                  <p><a name="d7e96"></a><tt>text</tt></p>
               </dd>
               <dt><a name="d7e100"></a><span class="term">Comment</span></dt>
               <dd>
                  <p><a name="d7e103"></a><tt>comment</tt></p>
               </dd>
               <dt><a name="d7e107"></a><span class="term">Processing Instruction</span></dt>
               <dd>
                  <p><a name="d7e110"></a><tt>processing instruction</tt></p>
               </dd>
            </dl>
         </div>
         
             
      </div>
   </div>
</div>